<%@ page import="java.util.List"%>
<%@ page import="gmusic.bo.OptionBean"%>

<jsp:include page="include/entete.jsp" flush="true">
	<jsp:param name="titre" value="Metal Archives" />
	<jsp:param name="sousTitre" value="Liste des groupes" />
</jsp:include>

<%
	List<OptionBean> options = (List<OptionBean>) session
			.getAttribute("options");
%>

<div class="table">
<table border="0" width="100%">
	<thead>
		<tr class="thead">
			<th>Clef</th>
			<th>Valeur</th>
			<th>Type</th>
		</tr>
	</thead>
	<tfoot>
		<tr class="tfoot">
			<td colspan="3"><%=options.size()%> enregistrement(s)</td>
		</tr>
	</tfoot>
	<%
		String[] ligneCouleur = new String[] { "ligne1", "ligne2" };
		for (int i = 0; i < options.size(); i++) {
	%>
	<tbody>
		<tr class="<%=ligneCouleur[i % 2]%>">
			<td><%=options.get(i).getId()%></td>
			<td align="center">
			<%
				if (options.get(i).isBooleanType()) {
			%> <a href="ModifierBooleanOption.gm?id=<%=options.get(i).getId()%>"><%=options.get(i).getValue()%></a>
			<%
				} else {
			%> <%=options.get(i).getValue()%> <%
 	}
 %>
			</td>
			<td align="center"><%=options.get(i).getType()%></td>
		</tr>
		<%
			}
		%>
	</tbody>
</table>
</div>

<jsp:include page="include/piedPage.jsp" flush="true" />